package com.lcm.weam.shiro;

import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.Serializable;

/**
 * 重写DefaultWebSessionManager 自定义自己的会话管理器
 * 重写从request中获取sessionId的方法
 */
public class WeamWebSessionManager extends DefaultWebSessionManager {
    public WeamWebSessionManager() {
        super();
    }

    @Override
    protected Serializable getSessionId(ServletRequest request, ServletResponse response) {
        return super.getSessionId(request, response);
    }
}
